package com.itranswarp.learnjava;

import java.util.Scanner;

/**
 * 输入上次考试成绩（int）和本次考试成绩（int），然后输出成绩提高的百分比，保留两位小数位（例如，21.75%）
 */
public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("输入上次考试成绩：");
		int num1 = input.nextInt();
		System.out.println("输入这次考试成绩：");
		int num2 = input.nextInt();
		
		float a = (float)(num2-num1)/num1*100;
		
		int prev = 80;
		int score = 90;
		double percent = 0.1;
		System.out.printf("成绩提高了%.2f%%",a);
	}

}
